package com.yuandian.api.management.vo;

import com.yuandian.api.management.entity.ConfNetTopology;
import com.yuandian.api.management.validate.InsertFlag;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 网端配置表-扩展类
 * @author zfsn
 * @date 2023-3-16
 */
@Data
public class ConfNetTopologyVo extends ConfNetTopology {

	/** 节点id */
	@ApiModelProperty(value = "节点id", notes = "节点id", required = true)
	private String nodeId;

	/** 父节点id */
	@ApiModelProperty(value = "父节点id", notes = "父节点id")
	private String parentNodeId;

	/** 坐标x */
	@NotNull(message = "坐标x不能为空", groups = InsertFlag.class)
	@ApiModelProperty(value = "坐标x", notes = "坐标x")
	private Double locationX;

	/** 坐标y */
	@NotNull(message = "坐标y不能为空", groups = InsertFlag.class)
	@ApiModelProperty(value = "坐标y", notes = "坐标y")
	private Double locationY;
}